/*
 * Xyz.cpp
 *
 *  Created on: Feb 4, 2013
 *      Author: w1084063
 */
#include "Xyz.h"

Xyz::Xyz() : x(0), y(0) {
}

Xyz::Xyz(int x_in, double y_in) : x(x_in), y(y_in) {
}

#include <iostream>

Xyz::Xyz( const Xyz& o){
	std::cout << " Copy constructor called " << std::endl;
	x = o.x;
	y = o.y;
}


void Xyz::add( const Xyz& other){
	x = x + other.x;
	y = y = other.y;
}
